package com.qdu.service.impl;

import com.qdu.bean.Log;
import com.qdu.bean.User;
import com.qdu.mapper.PersonMapper;
import com.qdu.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonServiceIml implements PersonService {
    @Autowired
    PersonMapper personMapper;
    @Override
    public User getUser(String name) {
        User user = personMapper.getUser(name);
        return user;
    }

    @Override
    public List<Log> getLog(String company) {
        return personMapper.getLog(company);
    }

    @Override
    public void updateUser(User user) {
        personMapper.updateUser(user);
    }
}
